﻿package cn.edu.zjusc.POJO;

import java.util.Date;

import javax.persistence.*;

@SuppressWarnings("serial")
@Entity
@Table(name="onlineregisterlog")
public class LogInfo implements java.io.Serializable {
	private int id;
	private String event;
	private String type;//0 代表登陆系统失败  1代表登陆系统成功 2代表报名 3代表下载准考证
	private Date recordTime;
	
	public LogInfo(){
		
	}
	
	public LogInfo(String event,String type){
		this.event=event;
		this.type=type;
		this.recordTime=new Date();
	}
	
	@Id
	@Column(name="ID")
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	
	@Column(name="Event")
	public String getEvent() {
		return event;
	}
	public void setEvent(String event) {
		this.event = event;
	}
	
	@Column(name="Type")
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	
	@Column(name="RecordTime")
	public Date getRecordTime() {
		return recordTime;
	}
	public void setRecordTime(Date recordTime) {
		this.recordTime = recordTime;
	}
	
}
